<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>transwarp: transwarp::executor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">transwarp
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacetranswarp.html">transwarp</a></li><li class="navelem"><a class="el" href="classtranswarp_1_1executor.html">executor</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classtranswarp_1_1executor-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">transwarp::executor Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>The executor interface used to perform custom task execution.  
 <a href="classtranswarp_1_1executor.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="transwarp_8h_source.html">transwarp.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for transwarp::executor:</div>
<div class="dyncontent">
<div class="center"><img src="classtranswarp_1_1executor__inherit__graph.png" border="0" usemap="#transwarp_1_1executor_inherit__map" alt="Inheritance graph"/></div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9416b1eb6d1f2c6d2b865274113ab628"><td class="memItemLeft" align="right" valign="top"><a id="a9416b1eb6d1f2c6d2b865274113ab628"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtranswarp_1_1executor.html#a9416b1eb6d1f2c6d2b865274113ab628">name</a> () const =0</td></tr>
<tr class="memdesc:a9416b1eb6d1f2c6d2b865274113ab628"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the name of the executor. <br /></td></tr>
<tr class="separator:a9416b1eb6d1f2c6d2b865274113ab628"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac6b51e7146995503ca08b26e0b0ca2d"><td class="memItemLeft" align="right" valign="top"><a id="aac6b51e7146995503ca08b26e0b0ca2d"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtranswarp_1_1executor.html#aac6b51e7146995503ca08b26e0b0ca2d">execute</a> (const std::function&lt; void()&gt; &amp;<a class="el" href="classtranswarp_1_1functor.html">functor</a>, <a class="el" href="classtranswarp_1_1itask.html">transwarp::itask</a> &amp;<a class="el" href="classtranswarp_1_1task.html">task</a>)=0</td></tr>
<tr class="memdesc:aac6b51e7146995503ca08b26e0b0ca2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Runs a task which is wrapped by the given functor. The functor only captures one shared pointer and can hence be copied at low cost. task represents the task that the functor belongs to. This function is only ever called on the thread of the caller to schedule(). The implementer needs to ensure that this never throws exceptions. <br /></td></tr>
<tr class="separator:aac6b51e7146995503ca08b26e0b0ca2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The executor interface used to perform custom task execution. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>include/<a class="el" href="transwarp_8h_source.html">transwarp.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
